<?php 
include '../view/heading.php'; 
?>

<div id="Inhalt">
    <h2>Aktueller Stand</h2>
    <form id="form" name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
        <p>Der aktuelle Stand am <?php echo date('d.m.Y').' ' ?> für die Saison 
            <select class="select-style" name="saison" size="1" onchange="this.form.submit()">
                <?php foreach ( $saisonSelect->getSaisons() as $select){ ?>
                    <option <?php if ($saisonSelect->getSelectedSaisons()->getId() == $select->getId()) {echo 'selected';} ?>><?php echo $select->getBeginn().' - '.$select->getEnde() ?> </option> 
                <?php } ?>
            </select>
        </p>
    </form>
    
    <div id="tab<?php echo $sportartSelection->getSelectedIndex() ?>" >
        <ul id="tabnav" style="margin-bottom: 0px; border-bottom: 1px solid #A9C6C9; padding-bottom:3px;">
            <?php foreach ( $sportartSelection->getSportarten() as $sportart){ ?>
            <li class="tab<?php echo $sportart->getId();?>"><a href="?page=<?php echo $newNextPage+1 ?>&saison=<?php echo $saisonSelect->getSelectedIndex(); ?>&tab=<?php echo $sportart->getId(); ?>"><?php echo $sportart->getSportname() ?></a></li>
            <?php } ?>
        </ul>
    </div>
    <?php include 'resultTab.php'; ?>
</div>
<?php include '../view/footing.php'; ?>
